import {HTTP} from "@/utils/http.js"


const http = new HTTP()
const request = http.request.bind(http)

export function getNewsList(data,currentPage,pageSize) {
    return request({
        url: `/news/list?currentPage=${currentPage}&pageSize=${pageSize}`,
        method: 'post',
        data: data
    })
}

/**
 * 获取页面详细数据
 * @param data
 * @returns {*}
 */
export function getNewsDetail(data){
    return request({
        url: `/news/detail`,
        method: 'post',
        data
    })
}
